﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace EnhancedWebControls
{
    [ParseChildren(false), PersistChildren(true)]
    class MessageTemplate : CompositeControl
    {
        public override void RenderBeginTag(HtmlTextWriter writer)
        {
            writer.AddAttribute("id", this.ClientID);
            writer.AddStyleAttribute(HtmlTextWriterStyle.Display, "none");
            writer.AddStyleAttribute("Float", "left");
            writer.RenderBeginTag(HtmlTextWriterTag.Div);
        }
        public override void RenderEndTag(HtmlTextWriter writer)
        {
            writer.RenderEndTag();
        }
    }
}
